{
  //泛型接口
  //<T>声明泛型变量
  interface student<T>{
    //使用接口声明的泛型变量
    name:T,
    age:number,
    id:number
  }
  //<string>给泛型接口声明的泛型变量声明类型
  let s1:student<string>={
    name:"yx",
    age:18,
    id:123
  }
  console.log(s1)
  let s2:student<number>={
    name:123,
    age:18,
    id:123
  }
  console.log(s2)
}